package com.common.http;

public class HttpStatus {

    /**成功状态码*/
    public static final int SUCCESS_CODE = 60200;
    /**成功提示信息*/
    public static final String SUCCESS_MESSAGE = "success";

    /**未登录状态码*/
    public static final int UN_LOGIN_CODE = 60300;
    /**未登录提示信息*/
    public static final String UN_LOGIN_MESSAGE = "您尚未登录,请先登录!";

    /**访问权限状态码*/
    public static final int AUTHORITY_NO_CODE = 60403;

    /**全局异常状态码*/
    public static final int GLOBAL_EXCEPTION_CODE = 60500;
    /**全局异常提示信息*/
    public static final String GLOBAL_EXCEPTION_MESSAGE = "攻城狮正在拼命优化,请您稍候再试!";

    /**参数缺失状态码*/
    public static final int PARAMETERS_MISSING_CODE = 60600;

    /**其他自定义状态码*/
    public static final int CODE_60601 = 60601;// 拦截器异常码
    public static final int CODE_60602 = 60602;
    public static final int CODE_60603 = 60603;
    public static final int CODE_60604 = 60604;
    public static final int CODE_60605 = 60605;
    public static final int CODE_60606 = 60606;
    public static final int CODE_60607 = 60607;
    public static final int CODE_60608 = 60608;
    public static final int CODE_60609 = 60609;

    /**版本号和接口版本不对称状态码*/
    public static final int VERSION_NOT_NEWEST_CODE = 60700;
    /**版本号和接口版本不对称提示信息*/
    public static final String VERSION_NOT_NEWEST_MESSAGE = "当前版本较低，请更新升级后再试!";


    /**参数格式不正确状态码*/
    public static final int PARAMETERS_PATTERN_ERROR_CODE = 60800;
    /**参数格式不正确提示信息*/
    public static final String PARAMETERS_PATTERN_ERROR_MESSAGE = "参数格式不正确";

    /**账号在别处登录状态码*/
    public static final int ACCOUNT_OTHER_LOGIN_CODE = 60900;
    /**账号在别处登录提示信息*/
    public static final String ACCOUNT_OTHER_LOGIN_MESSAGE = "您的账号已在其他设备登录,如非本人操作,请及时修改密码!";


    /**token无效状态码*/
    public static final int TOKEN_INVALID_CODE = 60901;
    /**token无效提示信息*/
    public static final String TOKEN_INVALID_MESSAGE = "由于您一段时间未操作,为了您的账户安全,请重新登录!";

    /**请求超过次数*/
    public static final int FREQUENCY_OUT = 60902;
    /**请求超过次数提示信息*/
    public static final String FREQUENCY_OUT_MESSAGE = "您的操作过于频繁,请刷新浏览器或稍候重试!";

    /**审核状态状态码*/
    public static final int ACCOUNT_AUDIT_CODE = 60903;
    /**审核状态状提示信息*/
    public static final String ACCOUNT_AUDIT_MESSAGE = "您所属企业企业资质审批未通过,请核实确认！";

    /**微信账号未绑定态码*/
    public static final int WECHAR_BIND_CODE = 60904;
    /**微信账号未绑定提示信息*/
    public static final String WECHAR_BIND_MESSAGE = "您的微信还未绑定危品汇账号！";

    /**
     * 自定义状态码,该状态码没有特殊含义,只是提供一个状态标识(目前提供9个,可自行扩展)
     */
    public static final int CODE_10301 = 10301;
}
